<?php
namespace slinks\extensions\action\result;

use slinks\extensions\action\core\IActionContext;

use slinks\extensions\action\configuration\IResultMapping;

interface IResult {
	
	/**
	 * Executes the given result. 
	 * 
	 * @param IResultMapping $resultMapping the result mapping that matched this IResult.
	 * @param ParameterBagInterface $parameters Parameters that 
         * @return mixed the value produced by the result execution.
	 */
	public function execute(IResultMapping $resultMapping,IActionContext $actionContext);
	
	
}